<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function fun(n){
        return {
            fun :function (m){
                console.log(m)
            }
        }
    }

    console.log(fun(0))
</script>
</body>
</html>